package cate.game.play.proce.result;


import cate.common.table.d.GDPlay;
import cate.game.play.skill.Skill;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("被动技能播报结果")
public class SkillAnounceResult extends ActionResult<SkillAnounceResult> {

    @NoteField("技能的模板ID")
    public int skillTid;

    public SkillAnounceResult() {
        this.type = GDPlay.ResultType.SKILL_ANNOUNCE;
    }

    public SkillAnounceResult skillSet(Skill skill){
        this.pid = skill.owner.getPid();
        this.skillTid = skill.tid;
        return this;
    }


    @Override
    public String toString() {
        return super.toString() + " skillTid=" + skillTid;
    }
}
